/**
  ******************************************************************************
  * @file    bsp_led.h
  * @author  
  * @version V1.0
  * @date    2017-xx-xx
  * @brief   
  ******************************************************************************
  * @attention
  *
  *
  ******************************************************************************
  */
	
#ifndef	__BSP_LED_H
#define	__BSP_LED_H

#ifdef	__cplusplus
extern	"C"	{
#endif

#include	"stm32f4xx.h"
#include	"bsp_gpio.h"

#define LED1_PIN                  GPIO_Pin_10                 
#define LED1_GPIO_PORT            GPIOH                      
#define LED1_GPIO_CLK             RCC_AHB1Periph_GPIOH

#define LED2_PIN                  GPIO_Pin_11                 
#define LED2_GPIO_PORT            GPIOH                      
#define LED2_GPIO_CLK             RCC_AHB1Periph_GPIOH

#define LED3_PIN                  GPIO_Pin_12                 
#define LED3_GPIO_PORT            GPIOH                       
#define LED3_GPIO_CLK             RCC_AHB1Periph_GPIOH

#define LED4_PIN                  GPIO_Pin_11                 
#define LED4_GPIO_PORT            GPIOD                       
#define LED4_GPIO_CLK             RCC_AHB1Periph_GPIOD	
	
void 		LED_GPIO_Config(void);	

#ifdef	__cplusplus
						}
#endif

class	cLED: public cGPIO
{
	public:
		cLED(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin):cGPIO(GPIOx, GPIO_Pin){}
		void	On(void);
		void	Off(void);
		void	Toggle(void);
};						
						
#endif

						